{template "header.html"}
<div class="container">
	<div class="row">
		<div class="col-md-6 col-md-offset-3 d-bian">
			<div class="d-kuan d-gao-100-50"></div>
		    <div class="d-kuan d-wenzi-juzhong d-shang-12">
		        <a href="{SITE_URL}">
		            <img src="{SITE_LOGO}" alt="{SITE_NAME}" class="logo-default">
		        </a>
		    </div>
		</div>
		<div class="container">
			<div class="col-md-6 col-md-offset-3 d-beijing-baise d-yuanjiao-20 d-shang-20">
				<div class="row ">
					<div class="col-xs-12">
						<div class="col-xs-4 d-quxian-0 d-wenzi-juzhong d-hanggao-40 d-wenzi-20 d-shang-20 d-yuanjiao-10 {if $_GET['c'] == 'login' && $_GET['m'] }d-beijing-hui{/if} ">
							<a href="{dr_member_url('member/index')}" >登录</a>
						</div>
						<div class="col-xs-4 d-quxian-0 d-wenzi-juzhong d-hanggao-40 d-wenzi-20 d-shang-20 d-yuanjiao-10 {if $_GET['c'] == 'register' && $_GET['m']}d-beijing-hui{/if}">
							<a href="{dr_member_url('register/index', ['groupid' => $i])}" >注册</a>
						</div>
						<div class="col-xs-4 d-quxian-0 d-wenzi-juzhong d-hanggao-40 d-wenzi-20 d-shang-20 d-yuanjiao-10 {if $_GET['c'] == 'login' && $_GET['m'] == 'find' }d-beijing-hui{/if}">
							<a href="{dr_member_url('login/find')}" >找密</a>
						</div>
					</div>
				</div>
				<div class="row ">
					<div class="col-md-12">
						<form class="content d-shang-20" id="myform" method="post" novalidate="novalidate">
							{$form}
							<div class="form-group">
								<div class="input-icon">
									<i class="fa fa-user"></i>
									<input class="form-control placeholder-no-fix input-lg" type="text" autocomplete="off" placeholder="账号/邮箱/手机" name="data[username]">
								</div>
							</div>
							<div class="form-group">
								<div class="input-icon">
									<i class="fa fa-lock"></i>
									<input class="form-control placeholder-no-fix input-lg" type="password" autocomplete="off" placeholder="登录密码" name="data[password]">
								</div>
							</div>
							{if $is_code}
							<div class="form-group">
								<div class="input-group login-code d-xia-10">
									<div class="input-icon">
										<i class="fa fa-code"></i>
										<input class="form-control placeholder-no-fix input-lg" type="text" autocomplete="off" placeholder="验证码" name="code">
									</div>
									
								</div>
								<div class="input-group-btn fc-code d-shang-10">
									{dr_code(120, 35)}
								</div>
							</div>
							{/if}
							<div class="form-actions">
								<label class="rememberme mt-checkbox mt-checkbox-outline">
									<input type="checkbox" name="remember" value="1"> 记住登录
									<span></span>
								</label>
								<button type="button" onclick="dr_ajax_member('{dr_member_url('login/index')}', 'myform');" class="btn green pull-right"> 登录 </button>
							</div>
							<div class="login-options">
								<ul class="login-oauth">
									{if isset($ci->member_cache['oauth']['qq']['id']) && $ci->member_cache['oauth']['qq']['id']}
									<li>
										<a href="{Router::oauth_url('qq', 'login')}"> <img src="{THEME_PATH}assets/oauth/qq.png"> </a>
									</li>
									{/if}
									{if isset($ci->member_cache['oauth']['weibo']['id']) && $ci->member_cache['oauth']['weibo']['id']}
									<li>
										<a href="{Router::oauth_url('weibo', 'login')}"> <img src="{THEME_PATH}assets/oauth/weibo.png"> </a>
									</li>
									{/if}
									{if isset($ci->member_cache['oauth']['weixin']['id']) && $ci->member_cache['oauth']['weixin']['id']}
									<li>
										<a href="{Router::oauth_url('weixin', 'login')}"> <img src="{THEME_PATH}assets/oauth/weixin.png"> </a>
									</li>
									{/if}
								</ul>
							</div>
							
						</form>
				
					</div>
					
				</div>
			</div>
		</div>
	</div>
</div>
<style>
	@media (max-width: 768px)
	.input-lg {
	    width: 100% !important;
	}
</style>
{template "footer.html"}